﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>工作明细</title>
<style>
#main {
	margin: 0 auto;
	width: 50%
}

form  table {
	width: 100%;
	border-spacing: 10px 30px;
	border-top: 1px solid #ccc;
	border-bottom: 1px solid #ccc
}

form  th {
	border-bottom: 2px solid #ccc;
}

form  td {
	text-align: left;
	width: 50%
}

form  tr td:first-child {
	text-align: right;
}

form  tr:last-child td:last-child {
	padding-left: 20px
}

h1 {
	text-align: center
}

input[type=text] {
	border-width: 0px 0px 2px 0px;
	border-color: black
}

input:focus {
	border-color: red
}
</style>
<script>
	
</script>
</head>
<body>
	<div id="main">
		<h1>${task.name}</h1>
		<h1>审批申请</h1>
		<a href="#">我的任务</a> <a href="#">我的审批</a>
		<form action="/baoxiao/web/approve/pass" method="post">
			<input type="hidden" name="taskid" value="${task.id}" /> <input
				type="hidden" name="askid" value="${ask.askId}">
			<table>
				<tbody>
					<tr>
						<td>编号</td>
						<td>${ask.askId}</td>
					</tr>
					<tr>
						<td>申请人</td>
						<td>${ask.emp.empName}</td>
					<tr>
						<td>申请标题</td>
						<td>${ask.askTitle}</td>
					</tr>
					<tr>
						<td>金额</td>
						<td>${ask.askMoney}</td>
					</tr>
					<tr>
						<td>内容</td>
						<td>${ask.askContent}</td>
					</tr>
					<tr>
						<td>申请日期</td>
						<td><fmt:formatDate value="${ask.askTime}"
								pattern="yyyy/MM/dd HH:mm" /></td>
					</tr>
					<tr>
						<td>审批意见</td>
						<td><textarea name="comment" cols="30" rows="5"></textarea></td>
					</tr>
					<tr>
						<td colspan="2" style="text-align: center;"><c:forEach
								var="btn" items="${btns}">
								<input type="submit" name="result" value="${btn}" />&nbsp;&nbsp;
						</c:forEach></td>
					</tr>
				</tbody>
			</table>
		</form>
		<hr />
		<table align="center" width="60%" cellspacing="0px">
			<tbody>
				<tr>
					<th>编号</th>
					<th>审批人</th>
					<th>审批意见</th>
					<th>审批时间</th>
				</tr>
				<c:forEach var="c" items="${clist}">
					<tr>
						<td>${c.id}</td>
						<td>${c.userId}</td>
						<td>${c.fullMessage}</td>
						<td><fmt:formatDate value="${c.time}"
								pattern="yyyy/MM/dd HH:mm" /></td>
					</tr>
				</c:forEach>
		</table>
	</div>

</body>
</html>